package com.deer.wms.base.system.service.bill.impl;

import com.deer.wms.base.system.dao.bill.BillInSapMapper;
import com.deer.wms.base.system.dao.bill.BillOutSapMapper;
import com.deer.wms.base.system.model.bill.*;
import com.deer.wms.base.system.model.box.BoxItemDto;
import com.deer.wms.base.system.service.bill.BillInSapService;
import com.deer.wms.base.system.service.bill.BillOutSapService;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class BillOutSapServiceImpl implements BillOutSapService {

    @Autowired
    private BillOutSapMapper billOutSapMapper;


    @Override
    public List<BillOutSapDetailDto> findBillOutSapDetailList(BillOutSapDetailDto billOutSapDetailDto) {
        return billOutSapMapper.findBillOutSapDetailList(billOutSapDetailDto);
    }

    @Override
    public List<BillOutSap> findBillOutSapList(BillOutSap billOutSap) {
        return billOutSapMapper.findBillOutSapList(billOutSap);
    }

    @Override
    public BillOutSapDto findBillOutSapByBillOutSapId(Integer billOutSapId) {
        return billOutSapMapper.findBillOutSapByBillOutSapId(billOutSapId);
    }

    @Override
    public List<BillOutSapDetailDto> findBillOutSapDetailByBillOutSapId(Integer billOutSapId) {
        return billOutSapMapper.findBillOutSapDetailByBillOutSapId(billOutSapId);
    }

    @Override
    public void updateBillOutSap(BillOutSap billOutSap) {
        billOutSapMapper.updateBillOutSap(billOutSap);
    }

    @Override
    public void insertBillOutMaster(BillOutMaster billOutMaster) {
        billOutSapMapper.insertBillOutMaster(billOutMaster);
    }

    @Override
    public void insertBillOutSap(BillOutSapDto billOutSapDto) {
        billOutSapMapper.insertBillOutSap(billOutSapDto);
    }

    @Override
    public void insertBillOutSapDetail(BillOutSapDto sapDetail) {
        billOutSapMapper.insertBillOutSapDetail(sapDetail);
    }

    @Override
    public void postingSap(int billOutSapId) {
        billOutSapMapper.postingSap(billOutSapId);
    }

    @Override
    public void postingSapDetail(int billOutSapId) {
        billOutSapMapper.postingSapDetail(billOutSapId);
    }

    @Override
    public void postingMaster(int billOutSapId) {
        billOutSapMapper.postingMaster(billOutSapId);
    }

    @Override
    public void updateDetailCarryStateById(Integer id) {
        billOutSapMapper.updateDetailCarryStateById(id);
    }

    @Override
    public int selectCarryStateCount(Integer id) {
        return billOutSapMapper.selectCarryStateCount(id);
    }

    @Override
    public void updateBillInSapState3(Integer id) {
        billOutSapMapper.updateBillInSapState3(id);
    }

    @Override
    public void updateBillInSapState2(Integer id) {
        billOutSapMapper.updateBillInSapState2(id);
    }

    @Override
    public BillOutSapDetailDto findBillOutSapDetailVo(Integer id) {
        return billOutSapMapper.findBillOutSapDetailVo(id);
    }

    @Override
    public List<Integer> findStateDetailById(int billOutSapId) {
        return billOutSapMapper.findStateDetailById(billOutSapId);
    }

    @Override
    public void updateBillInMasterState3(int id) {
        billOutSapMapper.updateBillInMasterState3(id);
    }

    @Override
    public void updateBillInMasterState2(int id) {
        billOutSapMapper.updateBillInMasterState2(id);
    }

    @Override
    public int deleteSapByIds(Integer id) {
        return billOutSapMapper.deleteSapByIds(id);
    }

    @Override
    public int deleteSapDetailByIds(Integer id) {
        return billOutSapMapper.deleteSapDetailByIds(id);
    }

    @Override
    public void insertDetailByBoxItem(BoxItemDto boxItem) {
        billOutSapMapper.insertDetailByBoxItem(boxItem);
    }


}
